package com.lyz.subject.domain.convert;

import com.lyz.subject.domain.entity.SubjectInfoBo;
import com.lyz.subject.domain.entity.SubjectOptionBo;
import com.lyz.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBo subjectInfoBo);

    SubjectInfoBo convertOptionToBo(SubjectOptionBo subjectOptionBo);

    SubjectInfoBo convertOptionAndInfoToBo(SubjectOptionBo subjectOptionBo, SubjectInfo subjectInfo);

    List<SubjectInfoBo> convertListInfoToBo(List<SubjectInfo> subjectInfoList);

}
